class Category < ActiveRecord::Base
  has_many :posts
  
  validates_presence_of :name
  validates_presence_of :description
  
  def url
    return '/kategorija/' + self.slug 
  end
end
